package com.lei.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.lei.dao.ProjectDao;
import com.lei.pojo.Project;

@Service
@Transactional
public class ProjectService {
	
	private ProjectDao projectDao;
	
	public List<Project> findAll(){
		return projectDao.findAll();
	}
	
	
	@Autowired
	public void setProjectDao(ProjectDao projectDao) {
		this.projectDao = projectDao;
	}
	
	
	

}
